package com.ysqcould.message.domain;


import com.ysqcould.common.annotation.Excel;
import com.ysqcould.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 消息通知对象 t_message
 * 
 * @author ruoyi
 * @date 2022-06-30
 */
public class Message extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 发送人id */
    @Excel(name = "发送人id")
    private Long sendId;

    /** 接收人id */
    @Excel(name = "接收人id")
    private Long receiveId;

    /** 消息类型：0系统消息，1待办消息，2系统待办（云社群助手里的入会申请待办） */
    @Excel(name = "消息类型：0系统消息，1待办消息，2系统待办", readConverterExp = "云=社群助手里的入会申请待办")
    private Long type;

    /** 内容类型：1入会申请，2资讯发布，3活动创建，4会议发布，5通用任务，6公文发布，7协同办公，8供需发布，9优惠信息 */
    @Excel(name = "内容类型：1入会申请，2资讯发布，3活动创建，4会议发布，5通用任务，6公文发布，7协同办公，8供需发布，9优惠信息")
    private Long contentType;

    /** 内容id */
    @Excel(name = "内容id")
    private Long contentId;

    /** 内容描述 */
    @Excel(name = "内容描述")
    private String describes;

    /** 阅读状态：0未读，1已阅 */
    @Excel(name = "阅读状态：0未读，1已阅")
    private Long readStatus;

    /** 状态（字典 0正常 1冻结 2删除） */
    @Excel(name = "状态", readConverterExp = "字=典,0=正常,1=冻结,2=删除")
    private Long status;

    /** 协会id */
    @Excel(name = "协会id")
    private Long asId;

    /** 是否查看未读消息（0 否 1是） */
    @Excel(name = "是否查看未读消息", readConverterExp = "0=,否=,1=是")
    private Long isSee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSendId(Long sendId) 
    {
        this.sendId = sendId;
    }

    public Long getSendId() 
    {
        return sendId;
    }
    public void setReceiveId(Long receiveId) 
    {
        this.receiveId = receiveId;
    }

    public Long getReceiveId() 
    {
        return receiveId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setContentType(Long contentType) 
    {
        this.contentType = contentType;
    }

    public Long getContentType() 
    {
        return contentType;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setDescribes(String describes) 
    {
        this.describes = describes;
    }

    public String getDescribes() 
    {
        return describes;
    }
    public void setReadStatus(Long readStatus) 
    {
        this.readStatus = readStatus;
    }

    public Long getReadStatus() 
    {
        return readStatus;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setAsId(Long asId) 
    {
        this.asId = asId;
    }

    public Long getAsId() 
    {
        return asId;
    }
    public void setIsSee(Long isSee) 
    {
        this.isSee = isSee;
    }

    public Long getIsSee() 
    {
        return isSee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sendId", getSendId())
            .append("receiveId", getReceiveId())
            .append("type", getType())
            .append("contentType", getContentType())
            .append("contentId", getContentId())
            .append("describes", getDescribes())
            .append("readStatus", getReadStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("asId", getAsId())
            .append("isSee", getIsSee())
            .toString();
    }
}
